<?php
require_once "config/config.php";
require_once "include/FooModel.php";
$fv = new FooModel($conf);

// URL
// http://foovision/v/<node>(/with_friends)

$tpl = array();
$tpl['node_name'] = htmlentities($_GET['node']);
$tpl['theme'] = $fv->getTheme($tpl['node_name']);
$tpl['checker_url'] = '/checker.php';
if (isset($_GET['with_friends']) 
    && ($_GET['with_friends'] == 'with_friends')) {
        $tpl['with_friends'] = true;
} else {
        $tpl['with_friends'] = false;
}
$tpl['interval'] = 3;
require_once 'themes/'.$tpl['theme'].'/index.php';
